﻿
/*
    A module must use "Enterprise.Modules" as namespace from the "Enterprise" package
    Rightcklick References and select "Add reference", select tab "Projects" and add the Enterprise project
    The interface requires "Active" and "ClassName"
    A dll(Assembly) must start with Enterprise, for eg Enterprise.HtmlContent.dll
 
    Active      = If a page is visisble and active
    ClassName   = This class name, for eg HtmlContent
 
    To make it visible in cms, add this project as reference in Enterprise.ClientWeb
 */

using System;
using System.Collections.Generic;
using System.Text;
using Enterprise.Modules;

namespace Enterprise.Modules
{
    public class HtmlContent : Module<HtmlContent.Data>
    {
        public HtmlContent() :base(){}
        public HtmlContent(string id): base(id){}

        public override bool Active
        {
            get{return _data.Active;}
            set{_data.Active = value;}
        }

        public string Html
        {
            get { return _data.Html; }
            set { _data.Html = value; }
        }

        public override string RewritePrefix
        {
            get { return ""; }
        }

        public class Data
        {
            public bool Active = false;
            public string Html = string.Empty;
            public string ClassName = "HtmlContent";
        }
    }
}
